package pakete2;

import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.Color;
import java.awt.Font;
import java.awt.Point;

public class EI_BisitariaTxartela extends JDialog {

	private static final long serialVersionUID = 1L;

	private JPanel jContentPane = null;

	private JPanel jContentPane1 = null;

	private JButton jButton = null;

	private JButton jButton1 = null;

	private JButton jButton51 = null;

	private JButton jButton2 = null;

	private JButton jButton3 = null;

	private JButton jButton4 = null;

	/**
	 * @param owner
	 */
	public EI_BisitariaTxartela(Frame owner) {
		super(owner);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 200);
		this.setLocation(new Point(400, 250));
		this.setContentPane(getJContentPane());
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(getJContentPane1(), BorderLayout.NORTH);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jContentPane1	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPane1() {
		if (jContentPane1 == null) {
			GridLayout gridLayout = new GridLayout();
			gridLayout.setRows(2);
			gridLayout.setColumns(3);
			jContentPane1 = new JPanel();
			jContentPane1.setLayout(gridLayout);
			jContentPane1.add(getJButton(), null);
			jContentPane1.add(getJButton1(), null);
			jContentPane1.add(getJButton51(), null);
			jContentPane1.add(getJButton2(), null);
			jContentPane1.add(getJButton3(), null);
			jContentPane1.add(getJButton4(), null);
		}
		return jContentPane1;
	}

	/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton() {
		if (jButton == null) {
			jButton = new JButton(new ImageIcon(getClass().getResource("/irudiak/g1.png")));
			jButton.setBackground(Color.blue);
			jButton.setForeground(new Color(51, 51, 51));
			jButton.setFont(new Font("Dialog", Font.BOLD, 12));
			jButton.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if (jButton.getBackground()==Color.blue) 
						jButton.setBackground(Color.yellow);
					else
						jButton.setBackground(Color.blue);
				}
			});
			
		}
		return jButton;
	}

	/**
	 * This method initializes jButton1	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton1() {
		if (jButton1 == null) {
			jButton1 = new JButton(new ImageIcon(getClass().getResource("/irudiak/g2.png")));
			jButton1.setBackground(Color.blue);
			jButton1.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if (jButton1.getBackground()==Color.blue) 
						jButton1.setBackground(Color.yellow);
					else
						jButton1.setBackground(Color.blue);
				}
			});
		}
		return jButton1;
	}

	/**
	 * This method initializes jButton51	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton51() {
		if (jButton51 == null) {
			jButton51 = new JButton(new ImageIcon(getClass().getResource("/irudiak/g3.png")));
			jButton51.setBackground(Color.blue);
			jButton51.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if (jButton51.getBackground()==Color.blue) 
						jButton51.setBackground(Color.yellow);
					else
						jButton51.setBackground(Color.blue);
				}
			});
		}
		return jButton51;
	}

	/**
	 * This method initializes jButton2	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton2() {
		if (jButton2 == null) {
			jButton2 = new JButton(new ImageIcon(getClass().getResource("/irudiak/g4.png")));
			jButton2.setBackground(Color.blue);
			jButton2.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if (jButton2.getBackground()==Color.blue) 
						jButton2.setBackground(Color.yellow);
					else
						jButton2.setBackground(Color.blue);
				}
			});
		}
		return jButton2;
	}

	/**
	 * This method initializes jButton3	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton3() {
		if (jButton3 == null) {
			jButton3 = new JButton(new ImageIcon(getClass().getResource("/irudiak/g5.png")));
			jButton3.setBackground(Color.blue);
			jButton3.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if (jButton3.getBackground()==Color.blue) 
						jButton3.setBackground(Color.yellow);
					else
						jButton3.setBackground(Color.blue);
				}
			});
		}
		return jButton3;
	}

	/**
	 * This method initializes jButton4	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton4() {
		if (jButton4 == null) {
			jButton4 = new JButton(new ImageIcon(getClass().getResource("/irudiak/g6.png")));
			jButton4.setBackground(Color.blue);
			jButton4.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if (jButton4.getBackground()==Color.blue) 
						jButton4.setBackground(Color.yellow);
					else
						jButton4.setBackground(Color.blue);
				}
			});
		}
		return jButton4;
	}

}
